<?php

class Form_ClientForm extends App_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);

        // change the class on the outer <dl> tag
        $this->getDecorator('HtmlTag')->setOption('class', 'form');

        $this->setName('clientForm');
        
        
        $model_service = new Model_Service();
    	$all_services = $model_service->getAllService();
                
        $departments=array();
        foreach($all_services as $key =>$item){
        	$departments[ $item['dpt_id'] ] = $item['dpt_name'];
        }
        		
		$dpt = $this->selectElement('dpt_id', '', $departments);
        
        $username = $this->textElement('username', 'Username or Account ID:');

        $submit = $this->submit('submit', 'Submit');
        
        $this->addElements(array($dpt, $username, $submit));
    }

    public function isValid($data)
    {
        
        return true;
    }

}
